package com.hb.core.pojo.project.push.entity;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 公告平台推送数据记录表
 * </p>
 *
 * @author zhongdl
 * @since 2022-02-22
 */
@Data
@TableName("trade_push_docking_log")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="TradePushDockingLog对象", description="公告平台推送数据记录表")
public class PushDockingLog extends MPCommonEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "业务id")
    private Long businessId;

    @ApiModelProperty(value = "其他关键字")
    private String otherKeyWord;

    @ApiModelProperty(value = "推送文件名字")
    private String pushFileName;

    private Integer type;

    @ApiModelProperty(value = "状态 -1 推送失败 0 推送成功处理失败, 1未推送，2已推送未处理，3推送成功， 9跳过不处理")
    private Integer status;

    @ApiModelProperty(value = "推送次数")
    private Integer pushCount;

    @ApiModelProperty(value = "推送失败次数")
    private Integer pushErrorCount;

    @ApiModelProperty(value = "首次推送时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime firstPushTime;

    @ApiModelProperty(value = "最后推送时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  lastPushTime;


    @ApiModelProperty(value = "推送内容")
    private String pushContent;

    @ApiModelProperty(value = "推送回执信息")
    private String serviceMessage;

}
